package com.example.daxiguaforharmony;

import com.example.daxiguaforharmony.slice.LoadingAbilitySlice;
import ohos.agp.components.ProgressBar;

import java.util.TimerTask;

public class ClickTask extends  TimerTask {

    public void run() {
        try {
            for(int i=0;i<10;i++){
                System.out.println(i);
                Thread.sleep(100);  //模拟耗时任务
            }
           //LoadingAbilitySlice.show_process();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


}
